package com.xieyingwangluo.yxpart.mapper;

import com.xieyingwangluo.yxpart.entity.UserEducationModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserEducationMapper {
    /**
     * 新增保存
     *
     * @return
     */
    //@CacheEvict(value="d_user",allEntries = true)
    int add(UserEducationModel userEducationModel);

    /**
     * 根据id获取用户信息
     *
     * @param noid
     * @return
     */
    //@Cacheable(value="d_demo",key="'UserMapper_getById_'+#noid")
    UserEducationModel getById(@Param("noid") String noid);

    int upd(UserEducationModel userEducationModel);

    List<UserEducationModel> selA(UserEducationModel userEducationModel);
}
